from django.db import models

# Create your models here.

class BookInfo(models.Model):
    #id
    name=models.CharField(max_length=10)
    def _str_(self):
        return self.name

class PeopleInfo(models.Model):
    name = models.CharField(max_length=10)
    gender = models.BooleanField()
    #waijian
    book = models.ForeignKey(BookInfo,on_delete=models.CASCADE)
    def _str_(self):
        return self.name


    pass